﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012FD RID: 4861
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncRogueMapRoomScNotify : IMessage<SyncRogueMapRoomScNotify>, IMessage, IEquatable<SyncRogueMapRoomScNotify>, IDeepCloneable<SyncRogueMapRoomScNotify>, IBufferMessage
	{
		// Token: 0x17003D60 RID: 15712
		// (get) Token: 0x0600D9A5 RID: 55717 RVA: 0x0024785D File Offset: 0x00245A5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncRogueMapRoomScNotify> Parser
		{
			get
			{
				return SyncRogueMapRoomScNotify._parser;
			}
		}

		// Token: 0x17003D61 RID: 15713
		// (get) Token: 0x0600D9A6 RID: 55718 RVA: 0x00247864 File Offset: 0x00245A64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncRogueMapRoomScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D62 RID: 15714
		// (get) Token: 0x0600D9A7 RID: 55719 RVA: 0x00247876 File Offset: 0x00245A76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncRogueMapRoomScNotify.Descriptor;
			}
		}

		// Token: 0x0600D9A8 RID: 55720 RVA: 0x0024787D File Offset: 0x00245A7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueMapRoomScNotify()
		{
		}

		// Token: 0x0600D9A9 RID: 55721 RVA: 0x00247888 File Offset: 0x00245A88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueMapRoomScNotify(SyncRogueMapRoomScNotify other) : this()
		{
			this.curRoom_ = ((other.curRoom_ != null) ? other.curRoom_.Clone() : null);
			this.mapId_ = other.mapId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D9AA RID: 55722 RVA: 0x002478D4 File Offset: 0x00245AD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueMapRoomScNotify Clone()
		{
			return new SyncRogueMapRoomScNotify(this);
		}

		// Token: 0x17003D63 RID: 15715
		// (get) Token: 0x0600D9AB RID: 55723 RVA: 0x002478DC File Offset: 0x00245ADC
		// (set) Token: 0x0600D9AC RID: 55724 RVA: 0x002478E4 File Offset: 0x00245AE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueRoom CurRoom
		{
			get
			{
				return this.curRoom_;
			}
			set
			{
				this.curRoom_ = value;
			}
		}

		// Token: 0x17003D64 RID: 15716
		// (get) Token: 0x0600D9AD RID: 55725 RVA: 0x002478ED File Offset: 0x00245AED
		// (set) Token: 0x0600D9AE RID: 55726 RVA: 0x002478F5 File Offset: 0x00245AF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MapId
		{
			get
			{
				return this.mapId_;
			}
			set
			{
				this.mapId_ = value;
			}
		}

		// Token: 0x0600D9AF RID: 55727 RVA: 0x002478FE File Offset: 0x00245AFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncRogueMapRoomScNotify);
		}

		// Token: 0x0600D9B0 RID: 55728 RVA: 0x0024790C File Offset: 0x00245B0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncRogueMapRoomScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.CurRoom, other.CurRoom) && this.MapId == other.MapId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D9B1 RID: 55729 RVA: 0x0024795C File Offset: 0x00245B5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.curRoom_ != null)
			{
				num ^= this.CurRoom.GetHashCode();
			}
			if (this.MapId != 0U)
			{
				num ^= this.MapId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D9B2 RID: 55730 RVA: 0x002479B1 File Offset: 0x00245BB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D9B3 RID: 55731 RVA: 0x002479B9 File Offset: 0x00245BB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D9B4 RID: 55732 RVA: 0x002479C4 File Offset: 0x00245BC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.curRoom_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.CurRoom);
			}
			if (this.MapId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.MapId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D9B5 RID: 55733 RVA: 0x00247A20 File Offset: 0x00245C20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.curRoom_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CurRoom);
			}
			if (this.MapId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MapId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D9B6 RID: 55734 RVA: 0x00247A78 File Offset: 0x00245C78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncRogueMapRoomScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.curRoom_ != null)
			{
				if (this.curRoom_ == null)
				{
					this.CurRoom = new RogueRoom();
				}
				this.CurRoom.MergeFrom(other.CurRoom);
			}
			if (other.MapId != 0U)
			{
				this.MapId = other.MapId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D9B7 RID: 55735 RVA: 0x00247AE0 File Offset: 0x00245CE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D9B8 RID: 55736 RVA: 0x00247AEC File Offset: 0x00245CEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MapId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.curRoom_ == null)
					{
						this.CurRoom = new RogueRoom();
					}
					input.ReadMessage(this.CurRoom);
				}
			}
		}

		// Token: 0x0400569D RID: 22173
		private static readonly MessageParser<SyncRogueMapRoomScNotify> _parser = new MessageParser<SyncRogueMapRoomScNotify>(() => new SyncRogueMapRoomScNotify());

		// Token: 0x0400569E RID: 22174
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400569F RID: 22175
		public const int CurRoomFieldNumber = 7;

		// Token: 0x040056A0 RID: 22176
		private RogueRoom curRoom_;

		// Token: 0x040056A1 RID: 22177
		public const int MapIdFieldNumber = 8;

		// Token: 0x040056A2 RID: 22178
		private uint mapId_;
	}
}
